/*
 * datahandlerbase.hpp
 *
 *  Created on: 2016-2-27
 *      Author: ZhangXiyin
 */

#ifndef EYAS_SOURCES_IO_BASE_DATAHANDLERBASE_HPP_
#define EYAS_SOURCES_IO_BASE_DATAHANDLERBASE_HPP_
#include "../conf/def.h"
#include "packet_base.hpp"
namespace eyas {
namespace io {

class data_handler_base {
public:
	virtual ~data_handler_base(){};

public:
	virtual void on_data_received(eyas::buffer::iobuffer& data, const error_code& error) = 0;
};

} /* namespace io */
} /* namespace eyas */
#endif /* EYAS_SOURCES_IO_BASE_DATAHANDLERBASE_HPP_ */
